
public class CustomHashMap2 extends CustomHashMap {
	public CustomHashMap2(int s) {
		super(s);
	}
	
	@Override
	protected int hash(String key) {
		int hash = 0;
		for (int i=0; i<key.length(); i++) {
			hash += Math.pow(31, i) * (int)key.charAt(i);
		}
		return hash % size;
	}
}
